Fix crashes in a text-mode session on Windows.
authorEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2013 19:28:13 +0000 (22:28 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 3 Jun 2013 19:28:13 +0000 (22:28 +0300)
commit3ad7c00b253eac76beadc09b16ed6e32e51721bc
tree413dbf2551e99d0e1f5246bca6cd80fe4e54c64b
parentf05c5fab36a857765510b52465b1475677eceedf
Fix crashes in a text-mode session on Windows.

 src/w32console.c (initialize_w32_display): Return the dimensions of
 the console window via 2 additional arguments, not via the current
 frame.  This avoids crashes due to overrunning the bounds of
 frame's decode_mode_spec_buffer, which is not resized following
 the change of the frame dimensions from the initial 10x10.
 src/w32term.h (w32_initialize_display_info): Adjust prototype.
 src/term.c (init_tty): Take dimensions of the frame from the values
 returned by initialize_w32_display.
src/ChangeLog
src/term.c
src/w32console.c
src/w32term.h